package com.gxa.springboot229.service.impl;

import com.gxa.springboot229.mapper.TicketMapper;
import com.gxa.springboot229.pojo.Ticket;
import com.gxa.springboot229.service.TicketService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service("TicketService")
public class TicketServiceImpl implements TicketService {
    @Resource
    TicketMapper ticketMapper;
    @Override
    public int addTicket (Ticket ticket) {
        int insert = ticketMapper.updateByPrimaryKeySelective(ticket);
        System.out.println("————————添加了"+insert);
        return insert;
    }
}
